package com.ylb.rent.service;

import java.util.List;

import com.ylb.rent.config.PageConfig;
import  com.ylb.rent.entity.Apartment;
import com.ylb.rent.entity.vo.ApartmentDetailVo;

/**
 * 公寓Service接口
 * 
 * @author ylb
 * @date 2023-06-29
 */
public interface IApartmentService 
{

    public List<ApartmentDetailVo> selectVoListByCityId(long cId);
    /**
     * 查询公寓
     * 
     * @param id 公寓主键
     * @return 公寓
     */
    public Apartment selectApartmentById(Long id);

    public ApartmentDetailVo selectApartmentVoById(Long id);
    /**
     * 查询公寓列表
     * 
     * @param apartment 公寓
     * @return 公寓集合
     */
    public List<Apartment> selectApartmentList(Apartment apartment);

    /**
     * 新增公寓
     * 
     * @param apartmentVo 公寓
     * @return 结果
     */
    public int insertApartment(ApartmentDetailVo apartmentVo);


    /**
     * 修改公寓
     * 
     * @param apartmentVo 公寓
     * @return 结果
     */
    public int updateApartment(ApartmentDetailVo apartmentVo);

    /**
     * 批量删除公寓
     * 
     * @param ids 需要删除的公寓主键集合
     * @return 结果
     */
    public int deleteApartmentByIds(Long[] ids);

    /**
     * 删除公寓信息
     * 
     * @param id 公寓主键
     * @return 结果
     */
    public int deleteApartmentById(Long id);
}
